-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for refreshing feed icons #2123
Conversation
I removed the RefreshIcon option I added to the feeds. This was to enable an automatic check for icon changes. Now instead of just checking everytime, I'm keeping track of the icon_url in the feed table and triggering a download if it's changed. |
261d48b
to
feba42b
Compare
What about if the site changes the favicon image but does not change the URL? Or can you just delete the URL completely and let Miniflux automatically detect it again? I want a way to make it refresh the icon even if the URL hasn’t changed |
@mattxtaz with this PR, clicking the "Refresh" link on the feed page would remove the feed icon and trigger miniflux to redownload it. |
85ed199
to
3e4c65a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you backfill the icon_url
field? If I understand correctly, this field is updated only when a new icon is created or when someone force refresh the feed manually.
The icon_url will match what ever is included in the feed. It gets updated when the feed is updated. |
What about feeds that don't specify an icon URL explicitly in their feed? The logs will have this message below but that can leads to confusion because the
Tested with few feeds: miniflux2=# select feed_url, icon_url from feeds;
feed_url | icon_url
----------------------------------------------+---------------------------------------
https://www.lemonde.fr/rss/une.xml |
https://linuxfr.org/news.atom |
https://blog.alexellis.io/rss/ | https://blog.alexellis.io/favicon.png
https://miniflux.app/feed.xml |
https://github.com/miniflux/v2/releases.atom |
(5 rows) |
icon urls that were discovered by fetching the feed's website are not included here since checking for changes would require refetching the feed's website on each update. I updated the log message to read "feed icon url not modified" and only if an icon_url is set. |
Refetch feed icon if the icon url included in the feed changes or if feed is refreshed manually.
Resolves #1555 #1805
Do you follow the guidelines?